OPC Studio User's Guide and Reference
INonNullEnumerable<T> Interface
Members 



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.Generic Namespace : INonNullEnumerable<T> Interface

The type of objects to enumerate.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Exposes the enumerator, which supports a simple iteration over a collection of non-null elements of a specified type.
Syntax
'Declaration
 
<ComVisibleAttribute(False)>
Public Interface INonNullEnumerable(Of T) 
   Inherits System.Collections.Generic.IEnumerable(Of T), System.Collections.IEnumerable 
'Usage
 
Dim instance As INonNullEnumerable(Of T)
[ComVisible(false)]
generic<typename T>
public interface class INonNullEnumerable : public System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable  
Type Parameters
T

The type of objects to enumerate.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Remarks

This interface contractually guarantees that it contains only non-null elements.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also